From: Jim Blandy Date: Wed, 9 Jun 1993 12:39:16 +0000 (+0000) Subject: * process.c (sigchld_handler): Add cast, to avoid warnings on Linux. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~95467 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=6382623783831301f85010bd515aa3159c6d1354;p=emacs.git * process.c (sigchld_handler): Add cast, to avoid warnings on Linux. (Fopen_network_stream): Cast the second argument to connect, to avoid warnings on any system that provides prototypes for connect. --- diff --git a/src/process.c b/src/process.c index d661aa92425..a834cc8a355 100644 --- a/src/process.c +++ b/src/process.c @@ -1478,7 +1478,7 @@ Fourth arg SERVICE is name of the service desired, or an integer\n\ report_file_error ("error creating socket", Fcons (name, Qnil)); loop: - if (connect (s, &address, sizeof address) == -1) + if (connect (s, (struct sockaddr *) &address, sizeof address) == -1) { int xerrno = errno; if (errno == EINTR)